<?php
include_once 'User.class.php';

class Produit{
    private $_reference, $_nom, $_description, $_cheminImage, $_note, $_prix, $_stock;
    
    public function __construct($ref, $nom, $desc, $cheminImg, $prix, $stock) {
        $this->_reference = $ref;
        $this->_nom = $nom;
        $this->_description = $desc;
        $this->_cheminImage = $cheminImg;
        $this->_prix = $prix;
        $this->_note = 0;
        $this->_stock = $stock;
    }

    public function getReference(){return $this->_reference;}
    public function getNom(){return $this->_nom;}
    public function getDescription(){return $this->_description;}
    public function getCheminImage(){return $this->_cheminImage;}
    public function getNoteProduit(){return $this->_note;}
    public function getPrix(){return $this->_prix;}
    public function getStock(){return $this->_stock;}
    
    
    
    public function setReference($ref){
        $this->_reference = $ref;
     }
    public function setNom($nom){
        $this->_nom = $nom;
    }
    public function setDescription($desc){
        $this->_description = $desc;
    }
    public function setCheminImage($chemin){
        $this->_cheminImage = $chemin;
    }
    public function setNoteProduit($note){
        $this->_note = $note;
    }
    public function setPrix($prix){
        $this->_prix = $prix;
    }

    public function setStock($stock){
        $this->_stock = $stock;
    }
    
}

?>
